package com.tools.entity;

public class HttpResult {

	private int status;
	private String info;

	public HttpResult(int status) {
		this(status,"");
	}

	public HttpResult(int status, String info) {
		this.status = status;
		this.info = info;
	}

	public int getHttpStatus() {
		return status;
	}

	public void setHttpStatus(int httpStatus) {
		this.status = httpStatus;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public class Status{
		public static final int _100 = 100;
		public static final int _101 = 101;
		public static final int _102 = 102;

		// --- 2xx Success ---
		public static final int _200 = 200;
		public static final int _201 = 201;
		public static final int _202 = 202;
		public static final int _203 = 203;
		public static final int _204 = 204;
		public static final int _205 = 205;
		public static final int _206 = 206;
		public static final int _207 = 207;

		// --- 3xx Redirection ---
		public static final int _300 = 300;
		public static final int _301 = 301;
		public static final int _302 = 302;
		public static final int _303 = 303;
		public static final int _304 = 304;
		public static final int _305 = 305;
		public static final int _307 = 307;
		// --- 4xx Client Error ---
		public static final int _400 = 400;
		public static final int _401 = 401;
		public static final int _402 = 402;
		public static final int _403 = 403;
		public static final int _404 = 404;
		public static final int _405 = 405;
		public static final int _406 = 406;
		public static final int _407 = 407;
		public static final int _408 = 408;
		public static final int _409 = 409;
		public static final int _410 = 410;
		public static final int _411 = 411;
		public static final int _412 = 412;
		public static final int _413 = 413;
		public static final int _414 = 414;
		public static final int _415 = 415;
		public static final int _416 = 416;
		public static final int _417 = 417;
		public static final int _419 = 419;
		public static final int _420 = 420;
		public static final int _422 = 422;
		public static final int _423 = 423;
		public static final int _424 = 424;
		// --- 5xx Server Error ---
		public static final int _500 = 500;
		public static final int _501 = 501;
		public static final int _502 = 502;
		public static final int _503 = 503;
		public static final int _504 = 504;
		public static final int _505 = 505;
		public static final int _507 = 507;

		public static final int _EXP=999;
	}
}
